package main;

public class Clothing extends Product {
    //添加私有属性 尺码
    private String size;
    public Clothing(String productId, String name, double price, String size) throws InvalidPriceException {
        super(productId, name, price);
        this.size = size;
    }
    public String getDescription() {
        return "服装，尺码: " + size + "，" + super.getName() + "，售价" + super.getPrice() + "元";
    }
    public String getWashingInstructions() {
        return "不能漂白，建议洗衣机洗";
    }
}